Package | smart.who.int.anc |
Type | PlanDefinition |
Id | Id |
FHIR Version | R4 |
Source | http://smart.who.int/anc/https://build.fhir.org/ig/WorldHealthOrganization/smart-anc/PlanDefinition-ANCDT34.html |
Url | http://smart.who.int/anc/PlanDefinition/ANCDT34 |
Version | 0.3.0 |
Status | active |
Date | 2025-06-24T13:58:48-06:00 |
Name | ANCDT34 |
Title | ANC.DT.34 Birth preparedness counselling |
Experimental | False |
Realm | uv |
Authority | who |
Description | General counselling to be provided/reviewed at every contact |
No resources found
No resources found
Note: links and images are rebased to the (stated) source
Id: | ANCDT34 | ||||
---|---|---|---|---|---|
Url: | ANC.DT.34 Birth preparedness counselling | ||||
Version: | 0.3.0 | ||||
Official |
ANC.DT.34 |
||||
Title: | ANC.DT.34 Birth preparedness counselling | ||||
Type: |
system: http://terminology.hl7.org/CodeSystem/plan-definition-type code: eca-rule |
||||
Date: | 2025-06-24 13:58:48-0600 | ||||
Publisher: | World Health Organization (WHO) | ||||
Description: | General counselling to be provided/reviewed at every contact |
||||
Use Context: |
|
||||
Jurisdiction: | 001 | ||||
Libraries: |
|
||||
Actions: |
|
{
"resourceType" : "PlanDefinition",
"id" : "ANCDT34",
"text" : {
"status" : "extensions",
"div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n<div>\n <table class=\"grid dict\">\n \n <tr>\n <th scope=\"row\"><b>Id: </b></th>\n <td style=\"padding-left: 4px;\">ANCDT34</td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Url: </b></th>\n <td style=\"padding-left: 4px;\"><a href=\"PlanDefinition-ANCDT34.html\">ANC.DT.34 Birth preparedness counselling</a></td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Version: </b></th>\n <td style=\"padding-left: 4px;\">0.3.0</td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\">\n <b>\n \n Official\n \n </b>\n </th>\n <td style=\"padding-left: 4px;\">\n \n <p style=\"margin-bottom: 5px;\">\n <span>ANC.DT.34</span>\n </p>\n \n </td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Title: </b></th>\n <td style=\"padding-left: 4px;\">ANC.DT.34 Birth preparedness counselling</td>\n </tr>\n \n\n \n\n \n\n \n\n \n <tr>\n <th scope=\"row\"><b>Type: </b></th>\n <td style=\"padding-left: 4px;\">\n \n \n \n <p style=\"margin-bottom: 5px;\">\n <b>system: </b> <span><a href=\"http://terminology.hl7.org/6.4.0/CodeSystem-plan-definition-type.html\">http://terminology.hl7.org/CodeSystem/plan-definition-type</a></span>\n </p>\n \n \n <p style=\"margin-bottom: 5px;\">\n <b>code: </b> <span>eca-rule</span>\n </p>\n \n \n \n \n \n </td>\n </tr>\n \n\n \n\n \n <tr>\n <th scope=\"row\"><b>Date: </b></th>\n <td style=\"padding-left: 4px;\">2025-06-24 13:58:48-0600</td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Publisher: </b></th>\n <td style=\"padding-left: 4px;\">World Health Organization (WHO)</td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Description: </b></th>\n <td style=\"padding-left: 4px;\"><div><p>General counselling to be provided/reviewed at every contact</p>\n</div></td>\n </tr>\n \n\n \n\n \n\n \n <tr>\n <th scope=\"row\"><b>Use Context: </b></th>\n <td style=\"padding-left: 4px;\">\n <table class=\"grid-dict\">\n <tr>\n <th><b>code</b></th>\n <th><b>value</b></th>\n </tr>\n \n <tr>\n <td>task</td>\n <td/>\n </tr>\n \n </table>\n </td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Jurisdiction: </b></th>\n <td style=\"padding-left: 4px;\">001</td>\n </tr>\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n <tr>\n <th scope=\"row\"><b>Libraries: </b></th>\n <td style=\"padding-left: 4px;\">\n <table class=\"grid-dict\">\n \n <tr>\n <td><a href=\"Library-ANCDT34.html\">ANC.DT.34 Birth preparedness counselling</a></td>\n </tr>\n \n </table>\n </td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Actions: </b></th>\n <td style=\"padding-left: 4px;\">\n <table class=\"grid-dict\">\n \n <tr>\n <td>\n \n <b> ANC.DT.34 Birth preparedness counselling:</b> \n \n <br/>\n \n <b>When:</b>\n \n <i>Named Event:</i> ANC.B10. Counselling, in-facility management & treatment\n <br/>\n \n \n \n \n <b>Then:</b>\n <table class=\"grid-dict\">\n \n <tr>\n <td>\n \n Encourage delivery at a health-care facility.\n\nRisk factors necessitating a facility birth:\n– Age 17 or under\n– Primigravida\n– Parity 6 or higher\n– Prior caesarian section\n– Previous pregnancy complications: heavy bleeding, forceps or vacuum delivery, convulsions, or 3rd or 4th degree tear\n– Vaginal bleeding\n– Multiple fetuses\n– Abnormal fetal presentation\n– HIV positive\n– Wants IUD or tubal ligation following delivery\n \n <br/>\n \n \n <b>If:</b>\n \n <i>Applicability:</i>\n \n (((((((((((((((Age" ≤ 17 years)\n OR ("Fetal presentation" = "Transverse fetal presentation"))\n OR ("Fetal presentation" = "Other fetal presentation (specify)"))\n OR (Number of caesarian sections" > 0))\n OR ("Number of fetuses" > 1))\n OR ("Family planning method provided" = "Copper-bearing intrauterine device (Cu-IUD)"))\n OR ("Family planning method provided" = "Levonorgestrel intrauterine device (LNG-IUD)"))\n OR ("Family planning method provided" = "Female sterilization"))\n OR ("Past pregnancy complications" = "Convulsions"))\n OR ("Past pregnancy complications" = "Heavy bleeding (during or after delivery)"))\n OR ("Past pregnancy complications" = "Forceps or vacuum delivery"))\n OR ("Past pregnancy complications" = "3rd or 4th degree tear"))\n OR ("Current physiological symptoms" = "Vaginal bleeding"))\n OR ("Number of pregnancies (gravida)" = 1))\n OR ("Parity" > 5))\n OR ("HIV status" = "HIV positive")\n \n <i>(Should Conduct counselling on birth preparedness and complications readiness)</i>\n <br/>\n \n \n \n <b>Then:</b> <i>Additional sub-actions not displayed</i>\n \n </td>\n </tr>\n \n <tr>\n <td>\n \n Explain why delivery needs to be with a skilled birth attendant, preferably at a facility according to woman's preference\n \n <br/>\n \n \n <b>If:</b>\n \n <i>Applicability:</i>\n \n "Planned birth place" = "Home"\n \n <i>(Should Conduct counselling on birth preparedness and complications readiness 2)</i>\n <br/>\n \n \n \n <b>Then:</b> <i>Additional sub-actions not displayed</i>\n \n </td>\n </tr>\n \n </table>\n \n </td>\n </tr>\n \n </table>\n </td>\n </tr>\n \n </table>\n</div>\n</div>"
},
"contained" : [
{
"resourceType" : "Library",
"id" : "effective-data-requirements",
"name" : "EffectiveDataRequirements",
"status" : "active",
"type" : {
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/library-type",
"code" : "module-definition"
}
]
},
"relatedArtifact" : [
{
"type" : "depends-on",
"display" : "Library FHIRHelpers",
"resource" : "http://smart.who.int/anc/Library/FHIRHelpers|4.0.1"
},
{
"type" : "depends-on",
"display" : "Library ContactData",
"resource" : "http://smart.who.int/anc/Library/ANCContactDataElements"
},
{
"type" : "depends-on",
"display" : "Library WC",
"resource" : "http://smart.who.int/anc/Library/WHOCommon"
},
{
"type" : "depends-on",
"display" : "Library Cx",
"resource" : "http://smart.who.int/anc/Library/ANCConcepts"
},
{
"type" : "depends-on",
"display" : "Value set Planned birth place",
"resource" : "http://smart.who.int/anc/ValueSet/anc-b10-de137"
},
{
"type" : "depends-on",
"display" : "Value set Planned birth place - Home Choices",
"resource" : "http://smart.who.int/anc/ValueSet/anc-b10-de140"
},
{
"type" : "depends-on",
"display" : "Value set Fetal presentation",
"resource" : "http://smart.who.int/anc/ValueSet/anc-b8-de111"
},
{
"type" : "depends-on",
"display" : "Value set Fetal presentation - Transverse fetal presentation Choices",
"resource" : "http://smart.who.int/anc/ValueSet/anc-b8-de115"
},
{
"type" : "depends-on",
"display" : "Value set Fetal presentation - Other fetal presentation (specify) Choices",
"resource" : "http://smart.who.int/anc/ValueSet/anc-b8-de116"
},
{
"type" : "depends-on",
"display" : "Value set Number of caesarian sections",
"resource" : "http://smart.who.int/anc/ValueSet/anc-b6-de33"
},
{
"type" : "depends-on",
"display" : "Value set Number of fetuses",
"resource" : "http://smart.who.int/anc/ValueSet/anc-b8-de109"
},
{
"type" : "depends-on",
"display" : "Value set Family planning method selected",
"resource" : "http://smart.who.int/anc/ValueSet/anc-b10-de145"
},
{
"type" : "depends-on",
"display" : "Value set Family planning method selected - Copper-bearing intrauterine device (Cu-IUD) Choices",
"resource" : "http://smart.who.int/anc/ValueSet/anc-b10-de146"
},
{
"type" : "depends-on",
"display" : "Value set Family planning method selected - Levonorgestrel intrauterine device (LNG-IUD) Choices",
"resource" : "http://smart.who.int/anc/ValueSet/anc-b10-de147"
},
{
"type" : "depends-on",
"display" : "Value set Family planning method selected - Female sterilization Choices",
"resource" : "http://smart.who.int/anc/ValueSet/anc-b10-de162"
},
{
"type" : "depends-on",
"display" : "Value set Past pregnancy complications",
"resource" : "http://smart.who.int/anc/ValueSet/anc-b6-de34"
},
{
"type" : "depends-on",
"display" : "Value set Past pregnancy complications - Convulsions Choices",
"resource" : "http://smart.who.int/anc/ValueSet/anc-b6-de41"
},
{
"type" : "depends-on",
"display" : "Value set Past pregnancy complications - Heavy bleeding (during or after delivery) Choices",
"resource" : "http://smart.who.int/anc/ValueSet/anc-b6-de44"
},
{
"type" : "depends-on",
"display" : "Value set Past pregnancy complications - Forceps Choices",
"resource" : "http://smart.who.int/anc/ValueSet/anc-b6-de42"
},
{
"type" : "depends-on",
"display" : "Value set Past pregnancy complications - Perineal tear (3rd or 4th degree) Choices",
"resource" : "http://smart.who.int/anc/ValueSet/anc-b6-de46"
},
{
"type" : "depends-on",
"display" : "Value set Current physiological symptoms",
"resource" : "http://smart.who.int/anc/ValueSet/anc-b7-de43"
},
{
"type" : "depends-on",
"display" : "Value set Current physiological symptoms - Vaginal bleeding Choices",
"resource" : "http://smart.who.int/anc/ValueSet/anc-b7-de66"
},
{
"type" : "depends-on",
"display" : "Value set Number of pregnancies (gravida)",
"resource" : "http://smart.who.int/anc/ValueSet/anc-b6-de24"
},
{
"type" : "depends-on",
"display" : "Value set Parity",
"resource" : "http://smart.who.int/anc/ValueSet/anc-b6-de32"
},
{
"type" : "depends-on",
"display" : "Value set HIV status",
"resource" : "http://smart.who.int/anc/ValueSet/anc-b9-de45"
},
{
"type" : "depends-on",
"display" : "Value set HIV status - HIV positive Choices",
"resource" : "http://smart.who.int/anc/ValueSet/anc-b9-de46"
}
],
"parameter" : [
{
"name" : "encounter",
"use" : "in",
"min" : 0,
"max" : "1",
"type" : "string"
},
{
"name" : "Should Conduct counselling on birth preparedness and complications readiness 2",
"use" : "out",
"min" : 0,
"max" : "1",
"type" : "boolean"
},
{
"name" : "Should Conduct counselling on birth preparedness and complications readiness",
"use" : "out",
"min" : 0,
"max" : "1",
"type" : "boolean"
}
],
"dataRequirement" : [
{
"type" : "Observation",
"profile" : [
"http://hl7.org/fhir/StructureDefinition/Observation"
],
"mustSupport" : [
"code",
"status",
"encounter",
"encounter.reference"
],
"codeFilter" : [
{
"path" : "code",
"valueSet" : "http://smart.who.int/anc/ValueSet/anc-b10-de137"
}
]
},
{
"type" : "Observation",
"profile" : [
"http://hl7.org/fhir/StructureDefinition/Observation"
],
"mustSupport" : [
"code",
"status",
"encounter",
"encounter.reference"
],
"codeFilter" : [
{
"path" : "code",
"valueSet" : "http://smart.who.int/anc/ValueSet/anc-b8-de111"
}
]
},
{
"type" : "Observation",
"profile" : [
"http://hl7.org/fhir/StructureDefinition/Observation"
],
"mustSupport" : [
"code",
"status",
"encounter",
"encounter.reference"
],
"codeFilter" : [
{
"path" : "code",
"valueSet" : "http://smart.who.int/anc/ValueSet/anc-b6-de33"
}
]
},
{
"type" : "Observation",
"profile" : [
"http://hl7.org/fhir/StructureDefinition/Observation"
],
"mustSupport" : [
"code",
"status",
"encounter",
"encounter.reference"
],
"codeFilter" : [
{
"path" : "code",
"valueSet" : "http://smart.who.int/anc/ValueSet/anc-b8-de109"
}
]
},
{
"type" : "Observation",
"profile" : [
"http://hl7.org/fhir/StructureDefinition/Observation"
],
"mustSupport" : [
"code",
"status",
"encounter",
"encounter.reference"
],
"codeFilter" : [
{
"path" : "code",
"valueSet" : "http://smart.who.int/anc/ValueSet/anc-b10-de145"
}
]
},
{
"type" : "Observation",
"profile" : [
"http://hl7.org/fhir/StructureDefinition/Observation"
],
"mustSupport" : [
"code",
"status",
"encounter",
"encounter.reference"
],
"codeFilter" : [
{
"path" : "code",
"valueSet" : "http://smart.who.int/anc/ValueSet/anc-b6-de24"
}
]
},
{
"type" : "Observation",
"profile" : [
"http://hl7.org/fhir/StructureDefinition/Observation"
],
"mustSupport" : [
"code",
"status",
"encounter",
"encounter.reference"
],
"codeFilter" : [
{
"path" : "code",
"valueSet" : "http://smart.who.int/anc/ValueSet/anc-b6-de32"
}
]
},
{
"type" : "Observation",
"profile" : [
"http://hl7.org/fhir/StructureDefinition/Observation"
],
"mustSupport" : [
"code",
"status",
"encounter",
"encounter.reference"
],
"codeFilter" : [
{
"path" : "code",
"valueSet" : "http://smart.who.int/anc/ValueSet/anc-b9-de45"
}
]
},
{
"type" : "Observation",
"profile" : [
"http://hl7.org/fhir/StructureDefinition/Observation"
],
"mustSupport" : [
"code",
"status",
"encounter",
"encounter.reference",
"value"
],
"codeFilter" : [
{
"path" : "code",
"valueSet" : "http://smart.who.int/anc/ValueSet/anc-b6-de34"
}
]
},
{
"type" : "Observation",
"profile" : [
"http://hl7.org/fhir/StructureDefinition/Observation"
],
"mustSupport" : [
"code",
"status",
"encounter",
"encounter.reference",
"value"
],
"codeFilter" : [
{
"path" : "code",
"valueSet" : "http://smart.who.int/anc/ValueSet/anc-b7-de43"
}
]
},
{
"type" : "Patient",
"profile" : [
"http://hl7.org/fhir/StructureDefinition/Patient"
]
}
]
}
],
"extension" : [
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "ANCContactDataElements"
},
{
"url" : "name",
"valueString" : "Planned birth place"
},
{
"url" : "statement",
"valueString" : "/*\n @dataElement: ANC.B10.DE137 Planned birth place\n @activity: ANC.B10.6 Risk reduction & general counselling\n @description: Place where woman plans to give birth\n*/\ndefine \"Planned birth place\":\n WC.Only(\n [Observation: Cx.\"Planned birth place\"] O\n where O.status in { 'final', 'amended', 'corrected' }\n and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false\n and Last(Split(O.encounter.reference, '/')) = Last(Split(encounter, '/'))\n ).value as FHIR.CodeableConcept"
},
{
"url" : "displaySequence",
"valueInteger" : 0
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "ANCDT34"
},
{
"url" : "name",
"valueString" : "Should Conduct counselling on birth preparedness and complications readiness 2"
},
{
"url" : "statement",
"valueString" : "/*\n\"Planned birth place\" = \"Home\"\n*/\ndefine \"Should Conduct counselling on birth preparedness and complications readiness 2\":\n ContactData.\"Planned birth place\" in Cx.\"Planned birth place - Home Choices\""
},
{
"url" : "displaySequence",
"valueInteger" : 1
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "ANCContactDataElements"
},
{
"url" : "name",
"valueString" : "Fetal presentation"
},
{
"url" : "statement",
"valueString" : "/*\n @dataElement: ANC.B8.DE111 Fetal presentation\n @activity: ANC.B8 Physical exam\n @description: If a single fetus only, indicate the presentation of the fetus in the uterus\n*/\ndefine \"Fetal presentation\":\n WC.Only(\n [Observation: Cx.\"Fetal presentation\"] O\n where O.status in { 'final', 'amended', 'corrected' }\n and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false\n and Last(Split(O.encounter.reference, '/')) = Last(Split(encounter, '/'))\n ).value as FHIR.CodeableConcept"
},
{
"url" : "displaySequence",
"valueInteger" : 2
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "ANCContactDataElements"
},
{
"url" : "name",
"valueString" : "Number of caesarian sections"
},
{
"url" : "statement",
"valueString" : "/*\n @dataElement: ANC.B6.DE33 Number of caesarian sections\n @activity: ANC.B6 Profile\n @description: Total number of caesarean sections\n*/\ndefine \"Number of caesarian sections\":\n WC.MostRecent(\n [Observation: Cx.\"Number of caesarian sections\"] O\n where O.status in { 'final', 'amended', 'corrected' }\n and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false\n and Last(Split(O.encounter.reference, '/')) = Last(Split(encounter, '/'))\n ).value as FHIR.integer"
},
{
"url" : "displaySequence",
"valueInteger" : 3
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "ANCContactDataElements"
},
{
"url" : "name",
"valueString" : "Number of fetuses"
},
{
"url" : "statement",
"valueString" : "/*\n @dataElement: ANC.B8.DE109 Number of fetuses\n @activity: ANC.B8 Physical exam\n @description: Indicate the number of fetuses the woman is carrying\n*/\ndefine \"Number of fetuses\":\n WC.Only(\n [Observation: Cx.\"Number of fetuses\"] O\n where O.status in { 'final', 'amended', 'corrected' }\n and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false\n and Last(Split(O.encounter.reference, '/')) = Last(Split(encounter, '/'))\n ).value as FHIR.Quantity"
},
{
"url" : "displaySequence",
"valueInteger" : 4
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "ANCContactDataElements"
},
{
"url" : "name",
"valueString" : "Family planning method selected"
},
{
"url" : "statement",
"valueString" : "/*\n @dataElement: ANC.B10.DE145 Family planning method selected\n @activity: ANC.B10.6 Risk reduction & general counselling\n @description: Type of postpartum family planning method selected\n*/\ndefine \"Family planning method selected\":\n WC.Only(\n [Observation: Cx.\"Family planning method selected\"] O\n where O.status in { 'final', 'amended', 'corrected' }\n and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false\n and Last(Split(O.encounter.reference, '/')) = Last(Split(encounter, '/'))\n ).value as FHIR.CodeableConcept"
},
{
"url" : "displaySequence",
"valueInteger" : 5
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "ANCContactDataElements"
},
{
"url" : "name",
"valueString" : "Past pregnancy complications"
},
{
"url" : "statement",
"valueString" : "/*\n @dataElement: ANC.B6.DE34 Past pregnancy complications\n @activity: ANC.B6 Profile\n @description: Mark whether the woman has had any complications or problems in any previous pregnancy\n*/\ndefine \"Past pregnancy complications\":\n [Observation: Cx.\"Past pregnancy complications\"] O\n where O.status in { 'final', 'amended', 'corrected' }\n and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false\n and Last(Split(O.encounter.reference, '/')) = Last(Split(encounter, '/'))\n return O.value as FHIR.CodeableConcept"
},
{
"url" : "displaySequence",
"valueInteger" : 6
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "ANCContactDataElements"
},
{
"url" : "name",
"valueString" : "Current physiological symptoms"
},
{
"url" : "statement",
"valueString" : "/*\n @dataElement: ANC.B7.DE43 Current physiological symptoms\n @activity: ANC.B7 Symptoms & Follow-up\n @description: The physiological symptoms that the woman is experiencing right now: select \"None\" if she is experiencing none of these symptoms\n*/\ndefine \"Current physiological symptoms\":\n [Observation: Cx.\"Current physiological symptoms\"] O\n where O.status in { 'final', 'amended', 'corrected' }\n and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false\n and Last(Split(O.encounter.reference, '/')) = Last(Split(encounter, '/'))\n return O.value as FHIR.CodeableConcept"
},
{
"url" : "displaySequence",
"valueInteger" : 7
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "ANCContactDataElements"
},
{
"url" : "name",
"valueString" : "Number of pregnancies (gravida)"
},
{
"url" : "statement",
"valueString" : "/*\n @dataElement: ANC.B6.DE24 Number of pregnancies (gravida)\n @activity: ANC.B6 Profile\n @description: Total number of times the woman has been pregnant (including this pregnancy); also referred to as gravida\n*/\ndefine \"Number of pregnancies (gravida)\":\n WC.Only(\n [Observation: Cx.\"Number of pregnancies (gravida)\"] O\n where O.status in { 'final', 'amended', 'corrected' }\n and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false\n and Last(Split(O.encounter.reference, '/')) = Last(Split(encounter, '/'))\n ).value as FHIR.integer"
},
{
"url" : "displaySequence",
"valueInteger" : 8
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "ANCContactDataElements"
},
{
"url" : "name",
"valueString" : "Parity"
},
{
"url" : "statement",
"valueString" : "/*\n @dataElement: ANC.B6.DE32 Parity\n @activity: ANC.B6 Profile\n @description: Calculated parity is the total number of live and stillbirths\n*/\ndefine \"Parity\":\n WC.MostRecent(\n [Observation: Cx.\"Parity\"] O\n where O.status in { 'final', 'amended', 'corrected' }\n and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false\n and Last(Split(O.encounter.reference, '/')) = Last(Split(encounter, '/'))\n ).value as FHIR.integer"
},
{
"url" : "displaySequence",
"valueInteger" : 9
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "ANCContactDataElements"
},
{
"url" : "name",
"valueString" : "HIV status"
},
{
"url" : "statement",
"valueString" : "/*\n @dataElement: ANC.B9.DE45 HIV status\n @activity: ANC.B9 Lab tests & imaging\n @description: Calculated field for woman's HIV status\n*/\ndefine \"HIV status\":\n WC.Only(\n [Observation: Cx.\"HIV status\"] O\n where O.status in { 'final', 'amended', 'corrected' }\n and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false\n and Last(Split(O.encounter.reference, '/')) = Last(Split(encounter, '/'))\n ).value as FHIR.CodeableConcept"
},
{
"url" : "displaySequence",
"valueInteger" : 10
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "ANCDT34"
},
{
"url" : "name",
"valueString" : "Should Conduct counselling on birth preparedness and complications readiness"
},
{
"url" : "statement",
"valueString" : "/*\n(((((((((((((((Age\" ≤ 17 years)\n OR (\"Fetal presentation\" = \"Transverse fetal presentation\"))\n OR (\"Fetal presentation\" = \"Other fetal presentation (specify)\"))\n OR (Number of caesarian sections\" > 0))\n OR (\"Number of fetuses\" > 1))\n OR (\"Family planning method provided\" = \"Copper-bearing intrauterine device (Cu-IUD)\"))\n OR (\"Family planning method provided\" = \"Levonorgestrel intrauterine device (LNG-IUD)\"))\n OR (\"Family planning method provided\" = \"Female sterilization\"))\n OR (\"Past pregnancy complications\" = \"Convulsions\"))\n OR (\"Past pregnancy complications\" = \"Heavy bleeding (during or after delivery)\"))\n OR (\"Past pregnancy complications\" = \"Forceps or vacuum delivery\"))\n OR (\"Past pregnancy complications\" = \"3rd or 4th degree tear\"))\n OR (\"Current physiological symptoms\" = \"Vaginal bleeding\"))\n OR (\"Number of pregnancies (gravida)\" = 1))\n OR (\"Parity\" > 5))\n OR (\"HIV status\" = \"HIV positive\")\n*/\ndefine \"Should Conduct counselling on birth preparedness and complications readiness\":\n (AgeInYearsAt(Today()) <= 17)\n or ContactData.\"Fetal presentation\" in Cx.\"Fetal presentation - Transverse fetal presentation Choices\"\n or ContactData.\"Fetal presentation\" in Cx.\"Fetal presentation - Other fetal presentation (specify) Choices\"\n or ContactData.\"Number of caesarian sections\" > 0\n or ContactData.\"Number of fetuses\" > 1\n or (ContactData.\"Family planning method selected\" in Cx.\"Family planning method selected - Copper-bearing intrauterine device (Cu-IUD) Choices\")\n or (ContactData.\"Family planning method selected\" in Cx.\"Family planning method selected - Levonorgestrel intrauterine device (LNG-IUD) Choices\")\n or (ContactData.\"Family planning method selected\" in Cx.\"Family planning method selected - Female sterilization Choices\")\n or (ContactData.\"Past pregnancy complications\" in Cx.\"Past pregnancy complications - Convulsions Choices\")\n or (ContactData.\"Past pregnancy complications\" in Cx.\"Past pregnancy complications - Heavy bleeding (during or after delivery) Choices\")\n or (ContactData.\"Past pregnancy complications\" in Cx.\"Past pregnancy complications - Forceps Choices\")\n or (ContactData.\"Past pregnancy complications\" in Cx.\"Past pregnancy complications - Perineal tear (3rd or 4th degree) Choices\")\n or (ContactData.\"Current physiological symptoms\" in Cx.\"Current physiological symptoms - Vaginal bleeding Choices\")\n or ContactData.\"Number of pregnancies (gravida)\" = 1\n or ContactData.\"Parity\" > 5\n or ContactData.\"HIV status\" in Cx.\"HIV status - HIV positive Choices\""
},
{
"url" : "displaySequence",
"valueInteger" : 11
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "FHIRHelpers"
},
{
"url" : "name",
"valueString" : "ToConcept"
},
{
"url" : "statement",
"valueString" : "define function ToConcept(concept FHIR.CodeableConcept):\n if concept is null then\n null\n else\n System.Concept {\n codes: concept.coding C return ToCode(C),\n display: concept.text.value\n }"
},
{
"url" : "displaySequence",
"valueInteger" : 12
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "FHIRHelpers"
},
{
"url" : "name",
"valueString" : "ToCode"
},
{
"url" : "statement",
"valueString" : "define function ToCode(coding FHIR.Coding):\n if coding is null then\n null\n else\n System.Code {\n code: coding.code.value,\n system: coding.system.value,\n version: coding.version.value,\n display: coding.display.value\n }"
},
{
"url" : "displaySequence",
"valueInteger" : 13
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "WHOCommon"
},
{
"url" : "name",
"valueString" : "Only"
},
{
"url" : "statement",
"valueString" : "define function Only(observations List<Observation>):\n singleton from observations"
},
{
"url" : "displaySequence",
"valueInteger" : 14
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "FHIRHelpers"
},
{
"url" : "name",
"valueString" : "ToString"
},
{
"url" : "statement",
"valueString" : "define function ToString(value ObservationStatus): value.value"
},
{
"url" : "displaySequence",
"valueInteger" : 15
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "FHIRHelpers"
},
{
"url" : "name",
"valueString" : "ToBoolean"
},
{
"url" : "statement",
"valueString" : "define function ToBoolean(value boolean): value.value"
},
{
"url" : "displaySequence",
"valueInteger" : 16
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "WHOCommon"
},
{
"url" : "name",
"valueString" : "ModifierExtension"
},
{
"url" : "statement",
"valueString" : "/*\n@description: Returns the single WHO core modifier extension (if present) on the given resource with the specified id.\n@comment: This function uses singleton from to ensure that a run-time exception is thrown if there\nis more than one extension on the given resource with the specified url.\n*/\ndefine function ModifierExtension(domainResource DomainResource, id String):\n singleton from ModifierExtensions(domainResource, id)"
},
{
"url" : "displaySequence",
"valueInteger" : 17
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "WHOCommon"
},
{
"url" : "name",
"valueString" : "ModifierExtensions"
},
{
"url" : "statement",
"valueString" : "/*\n@description: Returns any WHO core modifier extensions defined on the given resource with the specified id.\n@comment: NOTE: Extensions are not the preferred approach, but are used as a way to access\ncontent that is defined by extensions but not yet surfaced in the\nCQL model info.\n*/\ndefine function ModifierExtensions(domainResource DomainResource, id String):\n domainResource.modifierExtension E\n\t where E.url = ('http://fhir.org/guides/who/core/StructureDefinition/' + id)\n\t\treturn E"
},
{
"url" : "displaySequence",
"valueInteger" : 18
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "FHIRHelpers"
},
{
"url" : "name",
"valueString" : "ToString"
},
{
"url" : "statement",
"valueString" : "define function ToString(value uri): value.value"
},
{
"url" : "displaySequence",
"valueInteger" : 19
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "FHIRHelpers"
},
{
"url" : "name",
"valueString" : "ToString"
},
{
"url" : "statement",
"valueString" : "define function ToString(value string): value.value"
},
{
"url" : "displaySequence",
"valueInteger" : 20
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "FHIRHelpers"
},
{
"url" : "name",
"valueString" : "ToInteger"
},
{
"url" : "statement",
"valueString" : "define function ToInteger(value integer): value.value"
},
{
"url" : "displaySequence",
"valueInteger" : 21
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "WHOCommon"
},
{
"url" : "name",
"valueString" : "MostRecent"
},
{
"url" : "statement",
"valueString" : "define function MostRecent(observations List<Observation>):\n Last(\n observations O\n sort by issued\n )"
},
{
"url" : "displaySequence",
"valueInteger" : 22
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "FHIRHelpers"
},
{
"url" : "name",
"valueString" : "ToQuantity"
},
{
"url" : "statement",
"valueString" : "define function ToQuantity(quantity FHIR.Quantity):\n case\n when quantity is null then null\n when quantity.value is null then null\n when quantity.comparator is not null then\n Message(null, true, 'FHIRHelpers.ToQuantity.ComparatorQuantityNotSupported', 'Error', 'FHIR Quantity value has a comparator and cannot be converted to a System.Quantity value.')\n when quantity.system is null or quantity.system.value = 'http://unitsofmeasure.org'\n or quantity.system.value = 'http://hl7.org/fhirpath/CodeSystem/calendar-units' then\n System.Quantity { value: quantity.value.value, unit: ToCalendarUnit(Coalesce(quantity.code.value, quantity.unit.value, '1')) }\n else\n Message(null, true, 'FHIRHelpers.ToQuantity.InvalidFHIRQuantity', 'Error', 'Invalid FHIR Quantity code: ' & quantity.unit.value & ' (' & quantity.system.value & '|' & quantity.code.value & ')')\n end"
},
{
"url" : "displaySequence",
"valueInteger" : 23
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "FHIRHelpers"
},
{
"url" : "name",
"valueString" : "ToCalendarUnit"
},
{
"url" : "statement",
"valueString" : "define function ToCalendarUnit(unit System.String):\n case unit\n when 'ms' then 'millisecond'\n when 's' then 'second'\n when 'min' then 'minute'\n when 'h' then 'hour'\n when 'd' then 'day'\n when 'wk' then 'week'\n when 'mo' then 'month'\n when 'a' then 'year'\n else unit\n end"
},
{
"url" : "displaySequence",
"valueInteger" : 24
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"id" : "effective-data-requirements",
"url" : "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-effectiveDataRequirements",
"valueCanonical" : "#effective-data-requirements"
},
{
"url" : "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-softwaresystem",
"valueReference" : {
"reference" : "Device/cqf-tooling"
}
}
],
"url" : "http://smart.who.int/anc/PlanDefinition/ANCDT34",
"identifier" : [
{
"use" : "official",
"value" : "ANC.DT.34"
}
],
"version" : "0.3.0",
"name" : "ANCDT34",
"title" : "ANC.DT.34 Birth preparedness counselling",
"type" : {
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/plan-definition-type",
"code" : "eca-rule"
}
]
},
"status" : "active",
"experimental" : false,
"date" : "2025-06-24T13:58:48-06:00",
"publisher" : "World Health Organization (WHO)",
"contact" : [
{
"telecom" : [
{
"system" : "url",
"value" : "https://www.who.int"
}
]
}
],
"description" : "General counselling to be provided/reviewed at every contact",
"useContext" : [
{
"code" : {
"system" : "http://terminology.hl7.org/CodeSystem/usage-context-type",
"code" : "task",
"display" : "Workflow Task"
},
"valueCodeableConcept" : {
"coding" : [
{
"system" : "http://smart.who.int/anc/CodeSystem/activity-codes",
"code" : "ANC.B10.",
"display" : "Counselling, in-facility management & treatment"
}
]
}
}
],
"jurisdiction" : [
{
"coding" : [
{
"system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
"code" : "001"
}
]
}
],
"library" : [
"http://smart.who.int/anc/Library/ANCDT34"
],
"action" : [
{
"title" : "ANC.DT.34 Birth preparedness counselling",
"trigger" : [
{
"type" : "named-event",
"name" : "ANC.B10. Counselling, in-facility management & treatment"
}
],
"action" : [
{
"id" : "1",
"title" : "Conduct counselling on birth preparedness and complications readiness",
"description" : "Conduct counselling on birth preparedness and complications readiness",
"textEquivalent" : "Encourage delivery at a health-care facility.\n\nRisk factors necessitating a facility birth:\n– Age 17 or under\n– Primigravida\n– Parity 6 or higher\n– Prior caesarian section\n– Previous pregnancy complications: heavy bleeding, forceps or vacuum delivery, convulsions, or 3rd or 4th degree tear\n– Vaginal bleeding\n– Multiple fetuses\n– Abnormal fetal presentation\n– HIV positive\n– Wants IUD or tubal ligation following delivery",
"documentation" : [
{
"type" : "citation",
"label" : "Pregnancy, childbirth, postpartum and newborn care guide (IMPAC) (2015) (1)"
}
],
"condition" : [
{
"kind" : "applicability",
"expression" : {
"description" : "(((((((((((((((Age\" ≤ 17 years)\n OR (\"Fetal presentation\" = \"Transverse fetal presentation\"))\n OR (\"Fetal presentation\" = \"Other fetal presentation (specify)\"))\n OR (Number of caesarian sections\" > 0))\n OR (\"Number of fetuses\" > 1))\n OR (\"Family planning method provided\" = \"Copper-bearing intrauterine device (Cu-IUD)\"))\n OR (\"Family planning method provided\" = \"Levonorgestrel intrauterine device (LNG-IUD)\"))\n OR (\"Family planning method provided\" = \"Female sterilization\"))\n OR (\"Past pregnancy complications\" = \"Convulsions\"))\n OR (\"Past pregnancy complications\" = \"Heavy bleeding (during or after delivery)\"))\n OR (\"Past pregnancy complications\" = \"Forceps or vacuum delivery\"))\n OR (\"Past pregnancy complications\" = \"3rd or 4th degree tear\"))\n OR (\"Current physiological symptoms\" = \"Vaginal bleeding\"))\n OR (\"Number of pregnancies (gravida)\" = 1))\n OR (\"Parity\" > 5))\n OR (\"HIV status\" = \"HIV positive\")",
"language" : "text/cql-identifier",
"expression" : "Should Conduct counselling on birth preparedness and complications readiness"
}
}
],
"action" : [
{
"title" : "Conduct counselling on birth preparedness and complications readiness"
},
{
"title" : "Recommend woman to plan to give birth at a health-care facility"
}
]
},
{
"id" : "2",
"title" : "Conduct counselling on birth preparedness and complications readiness",
"description" : "Conduct counselling on birth preparedness and complications readiness 2",
"textEquivalent" : "Explain why delivery needs to be with a skilled birth attendant, preferably at a facility according to woman's preference",
"documentation" : [
{
"type" : "citation",
"label" : "Pregnancy, childbirth, postpartum and newborn care guide (IMPAC) (2015) (1)"
}
],
"condition" : [
{
"kind" : "applicability",
"expression" : {
"description" : "\"Planned birth place\" = \"Home\"",
"language" : "text/cql-identifier",
"expression" : "Should Conduct counselling on birth preparedness and complications readiness 2"
}
}
],
"action" : [
{
"title" : "Conduct counselling on birth preparedness and complications readiness"
},
{
"title" : "Explain why delivery needs to be with a skilled birth attendant, preferably at a facility according to woman's preference"
}
]
}
]
}
]
}
XIG built as of ??metadata-date??. Found ??metadata-resources?? resources in ??metadata-packages?? packages.